package com.example.springbootaop.controller;

import org.aspectj.weaver.ast.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
   private final static Logger logger=LoggerFactory.getLogger(TestController.class);

    @GetMapping("/test")
    public String test(String name){
        logger.info("进入controller test方法");
        return "name："+name;
    }
}
